import VueRouter  from "vue-router";
const routes=[
    {
        path: '/',
        name: 'MyLogin',
        component: () => import('../components/MyLogin.vue')
    },
    {
        path: '/MyIndex',
        name: 'MyIndex',
        component: () => import('../components/MyIndex.vue'),
        children:[
            {
                path:'/MyHome',
                name:'home',
                meta:{
                    title:'首页'
                },
                component: () => import('../components/MyHome.vue')

            },
            {
            path: '/Member',
            name: 'member',
            meta:{
                title:'会员管理'
            },
            component: () => import('../components/member/MemberManage.vue')
        },
            {
                path:'/CardType',
                name:'cardtype',
                meta:{
                    title:'会员卡类型'
                },
                component: () => import('../components/cardtype/CardTypeManage.vue')
            },
            {
                path:'/MemberCard',
                name:'membercard',
                meta:{
                    title:'会员卡管理'
                },
                component: () => import('../components/membercard/MemberCardManage.vue')
            },
            {
                path:'/Consumption' ,
                name:'consumption',
                meta:{
                    title:'消费记录'
                },
                component: () => import('../components/consumption/ConsumptionManage.vue')
            },
            {
                path:'/Service' ,
                name:'service',
                meta:{
                    title:'服务管理'
                },
                component: () => import('../components/service/ServiceManage.vue')
            },
            {
                path:'/Therapist' ,
                name:'therapist',
                meta:{
                    title:'技师管理'
                },
                component: () => import('../components/therapist/TherapistManage.vue')
            },
        ]

    }
]

const  router = new VueRouter({
    mode:'history',
    routes
})
export default router;